﻿using System;

namespace Tilver.Data
{
    /// <summary>
    /// 数据路由基类
    /// </summary>
    public class DbRouterBase
    {
        /// <summary>
        /// 数据库路由方法，在数据库操作基类DbManagerBase中会调用此方法
        /// </summary>
        /// <param name="type">根据类型确定访问数据路由</param>
        /// <param name="routeData"></param>
        /// <returns></returns>
        public virtual DbDataBase RouteDataBase(Type type, object routeData = null)
        {
            return DbDataFactory.Create();
        }
    }
}
